package sdtgraph;

public class Tuple<T>
{
	private T first, second;
	
	public Tuple(T f, T s)
	{
		first = f;
		second = s;
	}
	
	public T fst()
	{
		return this.first;
	}
	
	public T snd()
	{
		return this.second;
	}
	
	@Override
	public boolean equals(Object obj)
	{		
		if (obj instanceof Tuple)
		{
			Tuple t = (Tuple) obj;
			return (t.fst().equals(this.fst()) && t.snd().equals(this.snd()))? true:false;
		}
		else
			return false;
	}
}
